package GUI;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import net.miginfocom.swing.MigLayout;
import javax.swing.JTable;
import javax.swing.JTabbedPane;
import javax.swing.JList;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JTextField;
import javax.swing.SwingConstants;

public class Hall extends JFrame {

	private JPanel contentPane;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void fire() {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Hall frame = new Hall();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Hall() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 900, 900);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new MigLayout("", "[grow]", "[][grow]"));
		
		JButton btnNewButton = new JButton("Log Out");
		contentPane.add(btnNewButton, "cell 0 0,alignx right");
		
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		contentPane.add(tabbedPane, "cell 0 1,grow");
		
		JPanel panel_1 = new JPanel();
		tabbedPane.addTab("Auction House", null, panel_1, null);
		
		JList list = new JList();
		panel_1.add(list);
		
		JPanel panel = new JPanel();
		tabbedPane.addTab("My Auction", null, panel, null);
		panel.setLayout(new MigLayout("", "[][126.00][524.00,grow][]", "[]"));
		
		JLabel lblSetPrice = new JLabel("Set Price");
		lblSetPrice.setHorizontalAlignment(SwingConstants.CENTER);
		panel.add(lblSetPrice, "cell 0 0 2 1,alignx center,aligny center");
		
		textField = new JTextField();
		panel.add(textField, "cell 2 0,alignx center");
		textField.setColumns(10);
		
		JButton btnNewButton_1 = new JButton("Submit");
		panel.add(btnNewButton_1, "cell 3 0");
	}

}
